<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<title>品牌列表-${setting.name}</title>
		[#include "/common/include.ftl"/]
		[#import "common/pagination.ftl" as p/]
		<link rel="stylesheet" href="${base}/resource/css/promotion.css">
		<script src="${base}/resource/js/unslider.min.js"></script>
	</head>
	<body class="customer">

		[@b2c_advert_list position='brand_index_large' num=1]
			[#if tag_list?has_content]
				<div class="brand-banner">
					[#list tag_list as advert]
						<img class="lazy" data-original="[@Pic pic=advert.logo/]" width="1200" height="324" >
					[/#list]
				</div>
			[/#if]
		[/@b2c_advert_list]

		<div id="brand" class="body w">
			<div class="mt20 floor">
				<div class="mt">
					<h2 class="title"> 热门品牌</h2>
				</div>
				<div class="mc">
					<ul class="brand-list fl">
						[@b2c_brand_list count=27 isRecommend=true orderBy="priority asc"]
							[#list brandList as brand]
								<li>
									<a href="/brand-${brand.id}.jhtml" title="${brand.name}" target="_blank"> <img class="lazy" data-original="[@Pic pic=brand.logo/]" width="132" height="80"> </a>
								</li>
							[/#list]
						[/@b2c_brand_list]
					</ul>
				</div>
			</div>
			[#if pager?? && pager.list?has_content]
			[#list pager.list as brand]
			<div class="brand-shop-list mt10">
				<dl>
					<dt>
						<div class="img">
							<a href="/brand-${brand.id}.jhtml" title="${brand.name}" target="_blank"> <img class="lazy" data-original="[@Pic pic=brand.logo/]" width="132" height="80"> </a>
						</div>
						<p class="info">
							品牌：${(brand.name)!}
							  [#--[#if brand.introduction?? && brand.introduction?length > 10]
								${brand.introduction?substring(0,10)}
							  [#else]
								${(brand.introduction)!}
							  [/#if]--]
						</p>

						[#--<p class="total">
							月总销量：8878件
						</p>--]

					<a class="button" href="/brand-${brand.id}.jhtml">进入品牌</a>
					</dt>
					<dd>
						[#assign showGooodsCount = 5]

						<div class="mt">
							[#if brand.goodsQuantity?? && brand.goodsQuantity > showGooodsCount]
								<span class="t-r">还有${brand.goodsQuantity - showGooodsCount}件商品</span>
							[#else]
								[#assign showGooodsCount = brand.goodsQuantity]
							[/#if]
						</div>
						<div class="mc">
							<ul>
								[@b2c_goods_list brandId=brand.id count= showGooodsCount hasStock=false]
									[#list goodsList as goods]
										<li class="[#if !goods_has_next]last[/#if]">
											<div class="img">
												<a href="${(goods.path)!'#'}" title="${goods.name}"><img class="lazy" data-original="[@Pic pic=goods.image_default postfix="150x150"/]" postfix="150x150" width="150" height="150"/></a>
											</div>
											<p class="price">
												<span>¥</span><strong>${currency(goods.price, false)}</strong>
											</p>
		
											<p class="name">
												<a href="${(goods.path)!'#'}">${goods.name}</a>
											</p>
		
											<p class="t">
                                                <a href="javascript:" onclick="addCart('${goods.id}', 1)" class="add-cart">加入购物车</a><span>评价 ${(goods.cmts)!0}</span>
											</p>
										</li>
									[/#list]
								[/@b2c_goods_list]
							</ul>
						</div>
					</dd>
				</dl>
			</div>
			[/#list]
			[/#if]

			<div class="pager">
				[@p.pager pager = pager url = "${base}/brand/list.jhtml"/]
			</div>
		</div>

		[#include "common/footer-slidebar-lazyload.ftl"]
	</body>
</html>